﻿using System;
using System.ComponentModel.DataAnnotations;

namespace smp.ButterflyCakes.Models.FormModels.Order
{
    public class CakeTitleModel : IOrderModel
    {
        #region Implementation of IOrderModel

        [Required]
        public Guid OrderId { get; set; }
        
        [Required]
        public Guid ComponentId { get; set; }

        #endregion

        [Required]
        public string Title { get; set; }
        
        [Required]
        public ComponentType Type { get; set; }

        public int? NumberOfFlavours { get; set; }
        
        [Required]
        public bool IsCarved { get; set; }

        public SelectItem ComponentTypes
        {
            get { return new SelectItem("Type", typeof(ComponentType), Type, (int)ComponentType.OrderDetails, true); }
        }
    }
}
